package com.zhx.basis.设计模式.责任链.demo1;


public class Auth2 extends AuthService {


    public void queryAuthInfo() {
        QuestionFileVo deviceAccountVo=new QuestionFileVo().setFILE_NAME("这是FILE_NAME222").setIS_PMS("这是fIS_PMS2222");
        setO(deviceAccountVo);
        addStatus("FILE_NAME");
        addUserId("IS_PMS");

        //实体类映射
        RebateInfo rebateInfo = entityToMap(getO());

        //处理逻辑
        String status = rebateInfo.getStatus();
        String userId = rebateInfo.getUserId();
        System.out.println("Auth2消息通知业务" + status);
        System.out.println("Auth2任务中心入库业务" + userId);

        //下一级调用链
        if (next() != null) {
            next().queryAuthInfo();
        }

    }
}
